package com.xiaojie.seata.service.score.impl.service;


import com.xiaojie.seata.api.ScoreService;
import com.xiaojie.seata.entity.Score;
import com.xiaojie.seata.service.score.impl.dao.ScoreRepository;
import com.xiaojie.seata.service.score.impl.mapper.ScoreMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 积分服务
 * @author: xiaojie
 * @date: 2021.07.19
 */
@RestController
public class ScoreServiceImpl  implements ScoreService {
//    @Autowired
//    private ScoreMapper scoreMapper;

    @Autowired
   private  ScoreRepository scoreRepository;
    @Override
    public String save(Score score) {
//        scoreMapper.save(score);
        scoreRepository.save(score);
        return "添加积分成功";
    }
}
